package com.wetsion.securityoauthdemo.server.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

/**
 * Created by wetsion on 2019/3/2.
 */
@Data
@TableName("sys_role")
public class Role {

    private Long id;

    private String roleCode;

    private String roleName;

    @TableField(exist = false)
    private List<Permission> permissions;
}
